<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body></body>
    <script type="module"></script>
    <script type="module">
        import { getType, init } from "./src/index.js";
        const json = await fetch("./src/result/classifier.json").then((res) =>
            res.text()
        );
        console.time("init");
        console.log(await init(json));
        console.timeEnd("init");
        const code = await fetch(
            "./src/data/tsx/ffe5777e559ef652a794f20557bdfd1c.tsx"
        ).then((res) => res.text());
        const type = getType(code);
        console.log(type);
    </script>
</html>
